﻿<Window x:Class="DACU.UserControls.FriendsList"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="FriendsList" Height="305">
	<Window.Resources>
		
	</Window.Resources>
    <Grid>
		<ListView Name="lvFrends" GridViewColumnHeader.Click="lvFrends_Click">
			<ListView.View>
				<GridView>
					<GridViewColumn Header="" Width="50">
						<GridViewColumn.CellTemplate>
							<DataTemplate>
								<Image Source="{Binding PhotoUrl,Converter={StaticResource ResourceKey=UriToBitmap}}"></Image>
							</DataTemplate>
						</GridViewColumn.CellTemplate>
					</GridViewColumn>
					<GridViewColumn Header="Is Online">
						<GridViewColumn.CellTemplate>
							<DataTemplate>
								<Ellipse Grid.Column="1" Width="15" Height="15" Fill="{Binding IsOnline,Converter={StaticResource ResourceKey=BoolColor}}" />
							</DataTemplate>
						</GridViewColumn.CellTemplate>
					</GridViewColumn>
					<GridViewColumn Header="First Name">
						<GridViewColumn.CellTemplate>
							<DataTemplate>
								<TextBlock Grid.Column="2" Text="{Binding FirstName}"/>
							</DataTemplate>
						</GridViewColumn.CellTemplate>
					</GridViewColumn>
					<GridViewColumn Header="Last Name">
						<GridViewColumn.CellTemplate>
							<DataTemplate>
								<TextBlock Grid.Column="3" Text="{Binding LastName}"/>
							</DataTemplate>
						</GridViewColumn.CellTemplate>
					</GridViewColumn>
					<GridViewColumn Header="Has Mobile">
						<GridViewColumn.CellTemplate>
							<DataTemplate>
								<TextBlock Grid.Column="4" Text="{Binding HasMobile}"/>
							</DataTemplate>
						</GridViewColumn.CellTemplate>
					</GridViewColumn>
				</GridView>
			</ListView.View>
			<!--<ListViewItem>
				<Grid Background="#FFDBDBDB">
					<Grid.ColumnDefinitions>
						<ColumnDefinition SharedSizeGroup="Column1" />
						<ColumnDefinition SharedSizeGroup="Column2" />
						<ColumnDefinition SharedSizeGroup="Column3" />
						<ColumnDefinition SharedSizeGroup="Column4" />
						<ColumnDefinition SharedSizeGroup="Column5" />
					</Grid.ColumnDefinitions>
					<TextBlock Text=""/>
					<TextBlock Grid.Column="1" Text="IsOnline"/>
					<TextBlock Grid.Column="2" Text="First Name"/>
					<TextBlock Grid.Column="3" Text="Last Name"/>
					<TextBlock Grid.Column="4" Text="Has Mobile"/>
				</Grid>
			</ListViewItem>-->
			<!--<ListView.ItemTemplate>
				<DataTemplate>
					<Grid>
						<Grid.ColumnDefinitions>
							<ColumnDefinition SharedSizeGroup="Column1" />
							<ColumnDefinition SharedSizeGroup="Column2" />
							<ColumnDefinition SharedSizeGroup="Column3" />
							<ColumnDefinition SharedSizeGroup="Column4" />
							<ColumnDefinition SharedSizeGroup="Column5" />
						</Grid.ColumnDefinitions>
						<Image Source="{Binding PhotoUrl,Converter={StaticResource ResourceKey=UriToBitmap}}"></Image>
						<Ellipse Grid.Column="1" Width="15" Height="15" Fill="{Binding IsOnline,Converter={StaticResource ResourceKey=BoolColor}}" />
						<TextBlock Grid.Column="2" Text="{Binding FirstName}"/>
						<TextBlock Grid.Column="3" Text="{Binding LastName}"/>
						<TextBlock Grid.Column="4" Text="{Binding HasMobile}"/>
					</Grid>
				</DataTemplate>
			</ListView.ItemTemplate>-->
		</ListView>
	</Grid>
</Window>
